<?php 
header("content-type:text/html;charset=utf8");
$id = $_POST['did'];
// print_r($id);
$pdo = new PDO("mysql:host=127.0.0.1;dbname=07c","root","root");
$sql = "delete from xinxi where id='$id'";
$res = $pdo->exec($sql);
if($res)
{
	$data = array("code"=>1,"msg"=>"删除成功");
}
else
{
	$data = array("code"=>0,"msg"=>"删除失败");
}
echo json_encode($data);


 ?>